cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

project(idc)

find_package(OpenCV REQUIRED)

message(STATUS "OpenCV library status:")
message(STATUS "    version: ${OpenCV_VERSION}")
message(STATUS "    libraries: ${OpenCV_LIBS}")
message(STATUS "    include path: ${OpenCV_INCLUDE_DIRS}")

set(Torch_DIR /home/shen/ICSim/testc/testids/libtorch/share/cmake/Torch)

find_package(Torch REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${OpenCV_LIBS})
include_directories(${TORCH_INCLUDE_DIRS})
add_executable(IDS IDS.cpp)
target_link_libraries(IDS 
	"${TORCH_LIBRARIES}"
	${OpenCV_LIBS}
	)

set_property(TARGET IDS PROPERTY CXX_STANDARD 14)
